package com.atguigu.userprofile.dao;

import com.atguigu.userprofile.bean.TaskInfo;
import com.atguigu.userprofile.utils.MySQLUtil;

/**
 * ClassName: TaskInfoDAO
 * Package: com.atguigu.userprofile.dao
 * Description:
 *
 * @Author ChenJun
 * @Create 2023/3/29 11:18
 * @Version 1.0
 */
public class TaskInfoDAO {

    public  static TaskInfo getTaskInfo(String taskId){
        String querySQL = "SELECT * FROM task_info WHERE id = "+taskId+"";
        TaskInfo taskInfo = MySQLUtil.queryOne(querySQL, TaskInfo.class, true);
        return taskInfo;
    }
}
